package at.fhhgb.mc.android.mfb_hgb.model;

import java.sql.Timestamp;

public class Offer {
	private long OfferID;
	private String Name;
	private int Type;
	private String Source;
	private String Destination;
	private String Over;
	private Timestamp DepartureFrom;
	private Timestamp DepartureTo;
	private String Note;

	public Offer(long offerID, String name, int type, String source, String destination, String over, String departureFrom, String departureTo, String note) {
		OfferID = offerID;
		Name = name;
		Type = type;
		Source = source;
		Destination = destination;
		Over = over;
		DepartureFrom = Timestamp.valueOf(departureFrom);
		DepartureTo = (departureTo != null && !departureTo.equals("null")) ? Timestamp.valueOf(departureTo) : null;
		Note = note;
	}

	public long getOfferID() {
		return OfferID;
	}

	public void setOfferID(long offerID) {
		OfferID = offerID;
	}

	public String getName() {
		return Name;
	}

	public void setName(String name) {
		Name = name;
	}

	public int getType() {
		return Type;
	}

	public void setType(short type) {
		Type = type;
	}

	public String getSource() {
		return Source;
	}

	public void setSource(String source) {
		Source = source;
	}

	public String getDestination() {
		return Destination;
	}

	public void setDestination(String destination) {
		Destination = destination;
	}

	public String getOver() {
		return Over;
	}

	public void setOver(String over) {
		Over = over;
	}

	public String getNote() {
		return Note;
	}

	public void setNote(String note) {
		Note = note;
	}

	public Timestamp getDepartureFrom() {
		return DepartureFrom;
	}

	public void setDepartureFrom(Timestamp departureFrom) {
		DepartureFrom = departureFrom;
	}

	public Timestamp getDepartureTo() {
		return DepartureTo;
	}

	public void setDepartureTo(Timestamp departureTo) {
		DepartureTo = departureTo;
	}

	
}
